<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<style type="text/css">
			#btn1{
				position: fixed;
				right: 0px;
				bottom: 0px;
			}
			#btn2{
				position: fixed;
				right: 0px;
				bottom: 50px;
			}
		</style>
	</head>
	<body>
		<button id="btn1" onclick="test1()">测试1</button>
		<button id="btn2" onclick="test2()">自动往下滚动</button>
		<script type="text/javascript">
			var position=0;
			function test1()
			{
				position += 10;
				window.scrollTo(0,position);
			}
			
			function test2()
			{
				position += 1;
				window.scrollTo(0,position);
				setTimeout(test2,10)
			}
		</script>
		<br>123efewf
		<br>123
		<br>123
		<br>123
		<br>123
		<br>123
		<br>123
		<br>123
		<br>123ef
		<br>123
		<br>123
		<br>123
		<br>123
		<br>123
		<br>123
		<br>123
		<br>123
		<br>123
		<br>123
		<br>123
		<br>123
		<br>123
		<br>123efe
		<br>123
		<br>123
		<br>123
		<br>123
		<br>123
		<br>123
		<br>123
		<br>123
		<br>123
		<br>123
		<br>123
		<br>123ef
		<br>123
		<br>123
		<br>123
		<br>123
		
		<br>123
		<br>123
		<br>123
		<br>123
		<br>123
		<br>123
		<br>123
		<br>123
		<br>123
		<br>123
		<br>123
		<br>123ad
		<br>123
		<br>123
		<br>123
		<br>123
		<br>123
		<br>123
		<br>123
		<br>123
		
		<br>123
		<br>123
		<br>123
		<br>123
		<br>123
		<br>123a
		<br>123
		<br>123
		<br>123
		<br>1233
		<br>123
		<br>123
		<br>123
		<br>123
		<br>123
		<br>123
		<br>123
		<br>123
		<br>123
		<br>123
		
		<br>123
		<br>123
		<br>123
		<br>123
		<br>123
		<br>123
		<br>123
		<br>123
		<br>123
		<br>123
	</body>
</html>
